package com.powernode.feign;

import com.powernode.domain.Prod;
import com.powernode.feign.hystrix.IndexImgProdFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 内容:
 * 作者: cy
 */
@FeignClient(value = "product-service", fallback = IndexImgProdFeignHystrix.class)
public interface IndexImgProdFeign {

    /**
     * 远程调用查询商品的信息
     *
     * @param prodId
     * @return
     */
    @GetMapping("prod/prod/getProdInfoByProdId")
    Prod getProdInfoByProdId(@RequestParam Long prodId);


}
